package com.robot.member.dao;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import com.robot.member.pojo.Consumption;

/**
 * consumption数据访问接口
 *
 * @author lin
 */
public interface ConsumptionDao extends JpaRepository<Consumption, String>, JpaSpecificationExecutor<Consumption> {
    /**
     * 根据id和memberId查询
     *
     * @param id
     * @param memberId
     * @return
     */
    public Consumption findByIdAndMemberIdAndDeletedAtIsNull(String id, String memberId);
}
